package com.tangji.signaltower.bean;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

public class TransBean implements Serializable {

    private static final long serialVersionUID = 7992434159431673442L;

    private String bizCode;
    private String head;
    private String body;

    public TransBean() {
    }

    public TransBean(String bizCode) {
        this.bizCode = bizCode;
    }

    public static String convertTransDataStr(String bizCode) {
        return convertTransDataStr(bizCode, null, null);
    }

    public static String convertTransDataStr(String bizCode, String head, String body) {
        TransBean transBean = new TransBean();
        transBean.setBizCode(bizCode);
        transBean.setHead(head);
        transBean.setBody(body);
        return JSON.toJSONString(transBean);
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
